package com.nageoffer.shortlink.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nageoffer.shortlink.project.dao.entity.ShortLinkDo;
import com.nageoffer.shortlink.project.dto.req.*;
import com.nageoffer.shortlink.project.dto.resp.ShortLinkPageRespDTO;

/**
 * 回收站接口层
 */
public interface RecycleBinService extends IService<ShortLinkDo> {

    /**
     * 保存回收站
     * @param requestParam
     * */
    void saveRecycleBin(RecycleBinSaveReqDTO requestParam);


    /**
     * 分页查询回收站
     * @param requestParam
     * @return
     */
    IPage<ShortLinkPageRespDTO> pageShortLink(ShortLinkRecycleBinPageReqDTO requestParam);

    /**
     * 回收站恢复
     * @param requestParam
     */
    void recycleBinRecover(RecycleBinRecoverReqDTO requestParam);

    /**
     * 回收站移除
     * @param requsetParam
     */
    void removeRecycleBin(RecycleBinRemoveReqDTO requestParam);
}
